#ifndef __HARDWARE_H
#define __HARDWARE_H

#include "stm32g4xx_hal.h"
#include "lcd.h"
#include "stdbool.h"

struct Key_typedef
{
	uint32_t age;
	bool short_flag;
	bool long_flag;
	bool press;
	
	bool double_ageEN;
	uint8_t double_age;
	bool double_flag;
};
extern struct Key_typedef key[5];

void LED_Disp(uint8_t state);

uint8_t Key_Read(void);
void Key_Serv_Long(void);
void Key_Serv_double(void);


#endif
